﻿<html>
<!DOCTYPE html>
<html lang="en" class="no-js">
    <head>
        <meta charset="utf-8">
        <title>支付后台管理系统-登录(Login)</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">

        <!-- CSS -->
        <link rel="stylesheet" href="__ADMIN__/css/reset.css">
        <link rel="stylesheet" href="__ADMIN__/css/supersized.css">
        <link rel="stylesheet" href="__ADMIN__/css/style.css">
        <script src="__GLOBAL__/js/jquery.min.js"></script>
        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
         <script src="__ADMIN__/js/html5.js"></script>
        <![endif]-->

        <script type="text/javascript">
            $(function(){
                $("#Btn_Submit").bind('click', function () {
                    var username = $("input[name='username']").val();
                    var password = $("input[name='password']").val();
                    var code = $("input[name='code']").val();

                    $.ajax({
                        'url' : '__SELF__',
                        'type' : 'post',
                        dataType: "json",
                        'data' : {
                            "username" : username,
                            "password" : password,
                            "code" : code
                        },
                        success : function (data) {
                            if(data.code != 3) {
                                alert(data.msg);
                            }else{
                                location.href = '/index.php/Admin/Index/Index'
                            }
                        }
                    });


                });

            });
        </script>

    </head>

    <body>

        <div class="page-container">
            <h1>登录(Login)</h1>
            <form action="" method="post">
                <input type="text" name="username" class="username" placeholder="请输入您的用户名">
                <input type="password" name="password" class="password" placeholder="请输入您的用户密码">
                <input type="text" class="Captcha" maxlength="4"  name="code" placeholder="请输入验证码">
               <div style="margin-top: 27px;"> <img src="{:U('Admin/Login/Login_Code')}" onClick="this.src= '/index.php/Admin/Login/Login_Code.html?' +Math.random()" alt="验证码"></div>
                <button type="button" id="Btn_Submit" class="submit_button">登录</button>
                <div class="error"><span>+</span></div>
            </form>
            <div class="connect">
                <p>快捷</p>
                <p>
                    <a class="facebook" href=""></a>
                    <a class="twitter" href=""></a>
                </p>
            </div>
        </div>
		
        <!-- Javascript -->
        <script src="__ADMIN__/js/jquery-1.8.2.min.js" ></script>
        <script src="__ADMIN__/js/supersized.3.2.7.min.js" ></script>
        <script src="__ADMIN__/js/supersized-init.js" ></script>
        <script src="__ADMIN__/js/scripts.js" ></script>

    </body>
</html>

